package com.sugar.psych.assessment.module.business.controller.admin.psychquestionbank.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;

import java.time.LocalDateTime;
import java.util.*;
import javax.validation.constraints.*;

@Schema(description = "管理后台 - 心理测评题库新增/修改 Request VO")
@Data
public class PsychQuestionBankSaveReqVO {

    @Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "6341")
    private Long id;

    @Schema(description = "标题", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "标题不能为空")
    private String title;

    @Schema(description = "题库类型（字典表：business_psych_question_bank_type）", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "题库类型不能为空")
    private String riskLevel;

    @Schema(description = "提取题目数", requiredMode = Schema.RequiredMode.REQUIRED, example = "7647")
    @NotNull(message = "提取题目数不能为空")
    private Integer extractCount;

    @Schema(description = "提取类型（0固定 1随机）", requiredMode = Schema.RequiredMode.REQUIRED, example = "7647")
    @NotNull(message = "提取类型不能为空")
    private Boolean extractType;

    @Schema(description = "有效时间", requiredMode = Schema.RequiredMode.REQUIRED, example = "7647")
    private LocalDateTime validTime;

    @Schema(description = "状态（0正常 1禁用）", requiredMode = Schema.RequiredMode.REQUIRED, example = "7647")
    private Boolean status;

    @Schema(description = "是否置顶（0否 1是）", requiredMode = Schema.RequiredMode.REQUIRED, example = "7647")
    private Boolean isTop;

}